package com.ly.datacenter.database.definition;

import java.util.HashMap;
import java.util.Map;

/**
 * function：
 * @author watson  email: watson.wu@hotmail.com
 * @date 2009-9-4
 */
public class TableDefinitionContainer {
	
	private static Map<String, TableDefinition> map = new HashMap<String, TableDefinition>();
	
	public static void add(String tableName, TableDefinition define) {
		if(map.containsKey(tableName)) return;
		synchronized(map){
			map.put(tableName, define);
		}
	}
	
	public static TableDefinition get(String tableName){
		return map.get(tableName);
	}

}

